﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Data.Objects;
using JChatCore.CounTry;
namespace JChatData.CountryMap
{
   public class CountryMap:EntityConfiguration<CounTry>
    {
       /// <summary>
       /// Mapping to entity
       /// Code by Linh Pham
       /// </summary>
       public CountryMap()
       {
           HasKey(c => c.CountryID);
           Property(c => c.CountryID).IsIdentity();
           Property(c => c.NameCountry).IsRequired();
       }
    }
}
